home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12435 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland 4.5 application won't work on its own
  5. Date: 20 Mar 1996 00:15:46 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4inini$1s7@news1.h1.usa.pipeline.com>
  8. References: <4ikdco$rck@web.cae.ca>
  9. NNTP-Posting-Host: 38.8.53.2
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 18, 1996 19:26:16 in article <Re: Borland 4.5 application won't work
  16. on its own>, 'fraserh@cae.ca (Fraser Hutchinson)' wrote: 
  17.  
  18.  
  19. >In article <4i3fhh$bor@dole.uninett.no>, Kristoffer.Moe@nifu.no says... 
  20. >> 
  21. >>I have recently developed an application with Borland C++  
  22. >>4.5 and OWL. It is based on a TDecoratedFrame parent with a TDialog as a 
  23.  
  24. >>child. The program works nicely (acceptably that is) when compiled and
  25. run  
  26. >>'within' Borland IDE. However, when it is started on its own, whithout
  27. the  
  28. >>Borland IDE loaded in the machine at all, it displays the
  29. TDecoratedFrame,  
  30. >>and generates a General Protecton Fault. With Winspector running in the  
  31. >>background it works again. The application is based on AppExpert. 
  32. >I have seen this a lot with IDE's: my guess here is that you have a Rogue 
  33.  
  34. >pointer that is corrupting a memory address that doesn't bother the IDE
  35. but  
  36. >crashes Windows.  NULL pointer assignment errors have caused this.  I
  37. would  
  38. >suggest running the app through a memory leak detector like Purify or
  39. Bounds  
  40. >Checker. 
  41. >Fraser 
  42. A snippet from the FAQ: 
  43.  
  44. ======================================================================== 
  45.  
  46. Q147: Why does my BC++ Windows app crash when I'm not running the BC45 IDE?
  47.  
  48.  
  49. If you're using BC++ for a Windows app, and it works ok as long as you  
  50. have the BC45 IDE running, but when the BC45 IDE is shut down you get an
  51. exception during the creation of a window, then add the following line of
  52. code to the InitMainWindow() method of your application
  53. ("YourApp::InitMainWindow()"): 
  54.  
  55.     EnableBWCC(TRUE); 
  56.  
  57. ======================================================================== 
  58.  
  59.  
  60. -- 
  61. Pete Grant 
  62. Kalevi, Inc. 
  63. Software Engineering & development
  64.